/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI.EditorMenu;

import GUI.Dialogs.AboutDialog;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;

/**
 *
 * @author David
 */
public class HelpMenu extends JMenu
{

    private JMenuItem visitOnSourceForgeItem = new JMenuItem("Visit on Sourceforge");
    private JMenuItem aboutItem = new JMenuItem("About");

    /**
     *
     */
    public HelpMenu()
    {
        setText("Help");
        add(visitOnSourceForgeItem);
        add(aboutItem);
        initActions();
    }

    private void initActions()
    {
        aboutItem.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e)
            {
                new AboutDialog();
            }
        });
    }
}
